package com.ruoyi.subject.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 考试记录对象 t_qb_exam_record
 *
 * @author lzhj
 * @date 2021-01-27
 */
@Api("考试记录对象")
public class QbExamRecord extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long id;

    /**
     * 人员id
     */
    @ApiModelProperty(value = "人员id")
    @Excel(name = "人员id")
    private Long userId;

    /**
     * 考试时间
     */
    @ApiModelProperty(value = "考试时间,yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "考试时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date examTime;
    /**
     * 结束时间
     */
    @ApiModelProperty(value = "结束时间,yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    /**
     * 考试成绩
     */
    @ApiModelProperty(value = "考试成绩")
    @Excel(name = "考试成绩")
    private Float score;

    /**
     * 题库类型
     */
    @ApiModelProperty(value = "题库类型")
    @Excel(name = "题库类型")
    private String subType;

    /**
     * 微信openID
     */
    @ApiModelProperty(value = "微信openID")
    private String openId;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setExamTime(Date examTime) {
        this.examTime = examTime;
    }

    public Date getExamTime() {
        return examTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public void setScore(Float score) {
        this.score = score;
    }

    public Float getScore() {
        return score;
    }

    public void setSubType(String subType) {
        this.subType = subType;
    }

    public String getSubType() {
        return subType;
    }


    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("userId", getUserId())
                .append("examTime", getExamTime())
                .append("endTime", getEndTime())
                .append("score", getScore())
                .append("subType", getSubType())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
